package com.tongji.housediy.controller.userCMD
{
	import com.tongji.housediy.events.UserLoadandRegisterEvent.LoginEvent;
	import com.tongji.housediy.service.UserService;
	import org.robotlegs.mvcs.Command;
	import mx.controls.Alert;
	
	public class LoginCommand extends Command
	{
		[Inject]
		public var service:UserService;
		
		[Inject]
		public var event:LoginEvent;
		
		public override function execute():void
		{
			service.userLogin(event.userName, event.password);
		}
	}
}